<template>
	<view>
		<view class="box">
			
			<view style="color: #fff;">{{txt}}</view>
			<span style="--i:1"></span>
			<span style="--i:2"></span>
			<span style="--i:3"></span>
			<!-- <span style="--i:4"></span> -->
		</view>
	</view>
</template>

<script>
	export default {
		name: "w-upload",
		props:{
			txt:{
				type:String,
				default:''
			}
		},
		data() {
			return {

			}
		}
	}
</script>

<style lang="scss" scoped>
	.box {
		width: 200rpx;
		height: 200rpx;
		display: flex;
		justify-content: center;
		align-items: center;

	}

	.box span {
		position: absolute;
		box-sizing: border-box;
		border: 1rpx solid rgba(256,256,256,0.4);
		border-radius: 50%;
		animation: animate 5s linear infinite;
		animation-delay: calc(0.5s * var(--i))
	}

	.box:nth-child(2) span {
		border: none;
		background: rgba(0, 255, 0, 0.25)
	}

	@keyframes animate {
		0% {
			width: 0;
			height: 0;
		}

		50% {
			opacity: 1;
		}

		100% {
			width: 400rpx;
			height: 400rpx;
			opacity: 0;
		}
	}
</style>
